class CASE(object):
    def __init__(self,A_j,A_w,B_j,B_w,L,bearing):
        self.A_j = A_j  # A经度
        self.A_w = A_w  # A纬度
        self.B_j = B_j  # B经度
        self.B_w = B_w  # B纬度
        self.L = L  # A,B距离
        self.bearing = bearing

'''返回多个CASE实例'''
def getCases():
    CASES = []

    #https://www.hhlink.com/%E7%BB%8F%E7%BA%AC%E5%BA%A6
    c1 = CASE(A_j=117.114355,A_w=31.482526,B_j=117.171348,B_w=31.471631,L=8935.29,bearing=103.79)  #5.539km
    c2 = CASE(A_j=117.195422, A_w=31.807031, B_j=117.263710, B_w=31.809692, L=6472.98, bearing=87.35)  #6.46km
    c3 = CASE(A_j=117.114355, A_w=31.482526, B_j=117.122880,B_w=31.543221,L=11496.32,bearing=5.91)  #6.797km
    c4 = CASE(A_j=117.114355, A_w=31.482526, B_j=117.81083, B_w=31.543221, L=12610.30, bearing=333.80)  #66.364km
    c5 = CASE(A_j=119.5607, A_w=21.9311, B_j=112.5956, B_w=12.0297, L=12610.30, bearing=333.80)
    c6 = CASE(A_j=104.1937, A_w=20.8583, B_j=112.5956, B_w=12.0297, L=1000000, bearing=30)
    c7 = CASE(A_j=80, A_w=40, B_j=120, B_w=37.55, L=27748509, bearing=30)   #3448.994km
    CASES = [c1,c2,c3,c4,c5,c6,c7]
    return CASES


